package today.rocky.boot.eureka;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import today.rocky.boot.eureka.feign.ProFeign;

/**
 * @author Rocky
 * springboot
 * 启用eureka客户端
 * 启用发现 @EnableDiscoveryClient
 * 允许熔断
 * 允许feign调用
 * 允许ribbon @RibbonClient(name = "eureka-provider",configuration = LoadBalanceConfig.class)
 */
@SpringBootApplication
@EnableEurekaClient
@EnableCircuitBreaker
@EnableFeignClients(basePackageClasses = {ProFeign.class})
public class EurekaConsumerApplication {

    public static void main(String[] args) {
        SpringApplication.run(EurekaConsumerApplication.class, args);
    }

}
